* xml.el: Protect parser against XML bombs.
authorChong Yidong <cyd@gnu.org>
Tue, 3 Jul 2012 05:28:42 +0000 (13:28 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 3 Jul 2012 05:28:42 +0000 (13:28 +0800)
commitf6bbc4528548a5749bdaf4b759661dc1517c5337
tree1d81e9e91882ba4473ca26d5d9294a0bf7b77958
parent42aa8712a3e3c9f7c02cef0daadf948a2b45f5d5
* xml.el: Protect parser against XML bombs.
(xml-entity-expansion-limit): New variable.
(xml-parse-string, xml-substitute-special): Use it.
(xml-parse-dtd): Avoid infloop if the DTD is not terminated.

* test/automated/xml-parse-tests.el: Update testcases.
lisp/ChangeLog
lisp/xml.el
test/ChangeLog
test/automated/xml-parse-tests.el